casts

<%
int i=1;
%> 


(double) 1         : <%= (double) 1 %> 
(double) -1        : <%= (double) -1 %> 
(double) 1 / 2     : <%= (double) 1 / 2 %> 
(double) -1 / 2    : <%= (double) -1 / 2 %> 
(double) (-7 / 2)  : <%= (double) (-7 / 2) %> 
(double) i++       : <%= (double) i++ %> 
(int) (double) ++i : <%= (int) (double) i++ %> 
(double) --i       : <%= (double) --i %> 

(int) 1.5          : <%= (int) 1.5 %> 
(int) -1.5         : <%= (int) -1.5 %> 
(int) 1.5 / 2      : <%= (int) 1.5 / 2 %> 
(int) -1.5 / 2     : <%= (int) -1.5 / 2 %> 
(int) (-7 / 2)     : <%= (int) (-7 / 2) %> 

+ 4 * (int) (9 / -2) : <%= + 4 * (int) (9 / -2) %> 

"ala".length() / 2          : <%= "ala".length() / 2 %> 
(double) "ala".length() / 2 : <%= (double) "ala".length() / 2 %> 

(double) (double) (int) (int) Double.MIN_VALUE : <%= (double) (double) (int) (int) Double.MIN_VALUE %> 
(int) Double.MAX_VALUE         : <%= (int) Double.MAX_VALUE %> 
(int) Double.MIN_VALUE         : <%= (int) Double.MIN_VALUE %> 
(int) Double.NaN               : <%= (int) Double.NaN %> 
(int) Double.POSITIVE_INFINITY : <%= (int) Double.POSITIVE_INFINITY %> 
(int) Double.NEGATIVE_INFINITY : <%= (int) Double.NEGATIVE_INFINITY %> 

(double) Integer.MAX_VALUE     : <%= (double) Integer.MAX_VALUE %> 
(double) Integer.MAX_VALUE + 1 : <%= (double) Integer.MAX_VALUE + 1 %> 
(double) Integer.MAX_VALUE - 1 : <%= (double) Integer.MAX_VALUE - 1 %> 
(double) Integer.MIN_VALUE     : <%= (double) Integer.MIN_VALUE %> 
(double) Integer.MIN_VALUE + 1 : <%= (double) Integer.MIN_VALUE + 1 %> 
(double) Integer.MIN_VALUE - 1 : <%= (double) Integer.MIN_VALUE - 1 %> 

